<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Map"%>
<%@page import="com.weixin.base.util.Tools"%>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1" />
	<link rel="stylesheet"	type="text/css"	href="<%=request.getContextPath() %>/css/tp/tpmain/tpmain2.css" />
	<script type="text/javascript" src="<%=request.getContextPath() %>/js/tp/tpmain/tpmain2.js"></script>
</head>
<body onload="javascript:pload();">
	<div class="scroll">
		<div class="slide" id="slide">
		<%
			List<Map<String, Object>> slideList=(List<Map<String, Object>>)request.getAttribute("slideList"); 
			for (Map<String, Object> map : slideList) {
		%>	
			<div class="mod_top">
				<a href="<%=map.get("sWxUserUrl") %>"><img src="<%=map.get("sPicUrl") %>"></a>
			</div>
		<%
			}
		%>
		</div>
		<div class="dotModule_new">
			<div id="slide_dot"></div>
		</div>
	</div>
	
	<%
		List<Map<String, Object>> menuList=(List<Map<String, Object>>)request.getAttribute("menuList");
	%>
	
	<div class="topmenu">
	
		<%
		for(int i=0;i<3;i++){
			String sWxUserUrl="#";
			String sPicUrl="#";
			
			if(menuList.size()>0){
				Map<String, Object> map=menuList.get(0);
				sWxUserUrl=Tools.convertRs(map.get("sWxUserUrl"));
				sPicUrl=Tools.convertRs(map.get("sPicUrl"));
				menuList.remove(0);
			}
			
			if(i==1){
				%>
				<div class="topmenu_icon" style="margin-left:10px;margin-right:10px;">
					<a href="<%=sWxUserUrl %>"><img src="<%=sPicUrl %>"></a>
				</div>
				<%
			}else{
				%>
				<div class="topmenu_icon">
					<a href="<%=sWxUserUrl %>"><img src="<%=sPicUrl %>"></a>
				</div>
				<%
			}
		}
		%>
	</div>
	
	<div class="toptext">
		点击以下分类选择
	</div>
	
	
	<%	
		int outfor=menuList.size()/2+1;
		for(int i=0;i<outfor;i++){
	%>		
		<div class="menuclass">
			<%
				for(int j=0;j<2;j++){
					if(menuList.size()>0){
						Map<String, Object> map=menuList.get(0);
						
						if(j==0){
							
							%>
							<div class="menuclass_icon" style="background-color: <%=Tools.getColors() %>;">
								<a href="<%=map.get("sWxUserUrl") %>"><%=map.get("sContent") %>   ></a>
								<span class="img_mid"></span>
							</div>
							<%
							
						}else{
							%>
							<div class="menuclass_iconr" style="background-color: <%=Tools.getColors() %>;">
								<a href="<%=map.get("sWxUserUrl") %>"><%=map.get("sContent") %>   ></a>
								<span class="img_mid"></span>
							</div>
							<%
						}
						
						menuList.remove(0);
					}
				}
			%>
		</div>
	<%		
		}
	%>
</body>
</html>